using System;
using System.Text;
using System.Reflection;
using System.ServiceModel;
using System.Collections.Generic;
using System.Runtime.Serialization;
using TDS = Tridion.ContentManager.Interop.TDS;
using TDSDefines = Tridion.ContentManager.Interop.TDSDefines;



#pragma warning disable 649
namespace Tridion.Gateway
{
	[DataContract]
	public class PageTemplate:Facade
	{
        internal PageTemplate(TDS.PageTemplate PageTemplate, bool ShallowCopy)
            : base(typeof(TDS._PageTemplate), PageTemplate, ShallowCopy)
		{
		}

		[DataMember(Name="ItemType")]
		private TDSDefines.ItemType itemtype;
		public TDSDefines.ItemType ItemType
		{
			 get { return itemtype; }
		}


		[DataMember(Name="ID")]
		private String id;
		public String ID
		{
			 get { return id; }
		}


        [DataMember(Name = "Info")]
        private Info info;
        public Info Info
        {
            get { return info; }
        }


		[DataMember(Name="Title")]
		private String title;
		public String Title
		{
			 get { return title; }
			 set { title = value; }
		}


        //TODO:Fix
        //[DataMember(Name="OrganizationalItem")]
        //private Object organizationalitem;
        //public Object OrganizationalItem
        //{
        //     get { return organizationalitem; }
        //}


		[DataMember(Name="isEditable")]
		private Boolean iseditable;
		public Boolean isEditable
		{
			 get { return iseditable; }
		}


		[DataMember(Name="FileExtension")]
		private String fileextension;
		public String FileExtension
		{
			 get { return fileextension; }
			 set { fileextension = value; }
		}


		[DataMember(Name="Content")]
		private String content;
		public String Content
		{
			 get { return content; }
			 set { content = value; }
		}


        [DataMember(Name = "BinaryContent")]
        private Multimedia binarycontent;
        public Multimedia BinaryContent
        {
            get { return binarycontent; }
        }


        [DataMember(Name = "ApprovalStatus")]
        private ApprovalStatus approvalstatus;
        public ApprovalStatus ApprovalStatus
        {
            get { return approvalstatus; }
            set { approvalstatus = value; }
        }


        [DataMember(Name = "Publication")]
        private PublicationURI publication;
        public PublicationURI Publication
        {
            get { return publication; }
        }


        [DataMember(Name = "TemplateType")]
        private Int32 templatetype;
        public Int32 TemplateType
        {
            get { return templatetype; }
            set { templatetype = value; }
        }


        [DataMember(Name = "MetadataSchema")]
        private Schema metadataschema;
        public Schema MetadataSchema
        {
            get { return metadataschema; }
            set { metadataschema = value; }
        }


        //TODO:Fix
        //[DataMember(Name="MetadataFields")]
        //private ItemFields metadatafields;
        //public ItemFields MetadataFields
        //{
        //     get { return metadatafields; }
        //}


        [DataMember(Name = "ParameterSchema")]
        private Schema parameterschema;
        public Schema ParameterSchema
        {
            get { return parameterschema; }
            set { parameterschema = value; }
        }


        protected override void Initialize(FieldInfo field, PropertyInfo property, Object value)
        {

        }

	}
}

/*
			System.String GetXML(Tridion.ContentManager.Interop.TDSDefines.XMLReadFilter)
			Void UpdateXML(System.String)
			Void Save(Boolean)
			Void Delete()
			Void Localize()
			Void UnLocalize()
			System.String GetVersionList(Tridion.ContentManager.Interop.TDSDefines.ListColumnFilter)
			Void CheckIn(Boolean)
			Void CheckOut(Boolean)
			Void UndoCheckOut(Boolean)
			Void RollBack(Int32, Boolean)
			System.String GetRollBackComment(Int32)
			Void DeleteVersion(Int32)
			System.String Publish(System.Object, Boolean, Boolean, Boolean, System.DateTime, System.DateTime, System.DateTime, Boolean, Tridion.ContentManager.Interop.TDSDefines.EnumPublishPriority, Boolean, Int32)
			System.String UnPublish(System.Object, Boolean, Boolean, Boolean, System.DateTime, Boolean, Tridion.ContentManager.Interop.TDSDefines.EnumPublishPriority)
			System.String GetListPublishItems(System.Object, Boolean, Boolean, Tridion.ContentManager.Interop.TDSDefines.ListColumnFilter, Tridion.ContentManager.Interop.TDS.ListRowFilter)
*/
